value1: time
value2: distance